<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>   
    
    <style type="text/css">
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/style.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/style_text.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/form-buttons.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/link-buttons.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/menu.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/statics.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/messages.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/table-sorter.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/tabs.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/forms.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/datepicker.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/jquery.fancybox-1.3.4.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/accordions.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/jquery.treeview.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/wysiwyg.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/wysiwyg.modal.css");
        @import url("<?= Yii::app()->theme->baseUrl ?>/css/wysiwyg-editor.css");
    </style>
    <?
    //$baseUrl = Yii::app()->assetManager->publish(dirname(__FILE__) . '/../../assets');
    //Yii::app()->clientScript->registerScriptFile($baseUrl . '/js/jquery.js', CClientScript::POS_HEAD);
    Yii::app()->getClientScript()->registerCoreScript('jquery');
    ?>
    
    <!--[if lte IE 8]>
        <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/excanvas.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/superfish.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/supersubs.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/hoverIntent.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.flot.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.graphtable-0.2.js"></script>
   <!--<script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery-ui.js"></script>-->
    <?Yii::app()->clientScript->registerCoreScript('jquery.ui');?>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/customInput.jquery.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.tablesorter.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.tablesorter.pager.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.sparkbox-select.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.fancybox-1.3.4.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.filestyle.mini.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/date.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.datepicker.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.treeview.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.tipsy.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/jquery.wysiwyg.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/plugins/wysiwyg.rmFormat.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/controls/wysiwyg.image.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/controls/wysiwyg.link.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/controls/wysiwyg.table.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/inline.js"></script>
    <script type="text/javascript" src="<?= Yii::app()->theme->baseUrl ?>/js/typecast_1.4.js"></script>
    
</head>
<body>

<div class="container">   
  
    <div class="logo-labels">
        <h1><a href="#"><?= Yii::app()->name?></a></h1>
        <ul>
            <li><a href="<?= Yii::app()->createUrl('config')?>"><span>Настройки</span></a></li>
            <!--<li class="usermessage"><a href="#"><span>1 new message</span></a></li-->
            <li class="logout"><a href="<?= Yii::app()->createUrl('site/logout') ?>">
                <span><?= Yii::t('app', 'Выход')?></span></a></li>
        </ul>
    </div>
    
    <div class="menu-search">
        <ul>
            <li><a href="<?=Yii::app()->createUrl('/')?>">Главная</a></li>
            <li>
                <a href="#">Объявления</a>
                <ul>
                    <li><a href="<?=Yii::app()->createUrl('/adv')?>">Объявления</a></li>
                    <li><a href="<?=Yii::app()->createUrl('/adv/category')?>">Список Подразделов</a></li>
                    <li><a href="">Список Марок</a></li>
                    <li><a href="">Список Моделей</a></li>
                </ul>
            </li>
            <li><a href="<?=Yii::app()->createUrl('pages')?>">Страницы</a></li>
            <li><a href="<?=Yii::app()->createUrl('news')?>">Новости</a></li>
            <li><a href="<?=Yii::app()->createUrl('articles')?>">Статьи</a></li>
            <li><a href="<?=Yii::app()->createUrl('menu')?>">Меню</a></li>
            <li><a href="<?=Yii::app()->createUrl('banners')?>">Баннеры</a></li>
            <li><a href="#">Автопредприятия</a>
                <ul>
                    <li><a href="<?=Yii::app()->createUrl('companies/category?type=0')?>">Категории АвтоУслуг</a></li>
                    <li><a href="<?=Yii::app()->createUrl('companies/category?type=1')?>">Категории АвтоФирм</a></li>
                    <li><a href="<?=Yii::app()->createUrl('companies/index?type=0')?>">АвтоУслуги</a></li>
                    <li><a href="<?=Yii::app()->createUrl('companies/index?type=1')?>">АвтоФирмы</a></li>
                </ul>
            </li>
        </ul>
    <?/*php $this->widget('DrawMenu', array(
                        'template' => 'TopMenu',
                        'menu' => 'admin'
    )); */?>
        <!--div class="search">
            <form action="" method="post">
                <input type="text" value="Seachterm" />
                <button type="submit"></button>
            </form> 
        </div-->
    </div>
    
    <div class="breadcrumbs">
      <!--  <ul>
            <li class="home"><a href="#"></a></li>
            <li class="break">&#187;</li>
            <li><a href="#">Menu item</a></li>
            <li class="break">&#187;</li>
            <li><a href="#">Menu item</a></li>
        </ul>-->
    </div
